package com.sc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sc.domain.RepClass;
import com.sc.domain.RepDetail;
import com.sc.mapper.RepClassMapper;
import com.sc.mapper.RepDetailMapper;
import com.sc.service.RepClassService;
import com.sc.service.RepDetailService;
import com.sc.vo.RepDetailVO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@RequiredArgsConstructor
@Service
public class RepDetailServiceImpl extends ServiceImpl<RepDetailMapper, RepDetail> implements RepDetailService {
   private final RepDetailMapper repDetailMapper;

 /**
  * 根据分类id查询详细项目
  *
  * @param id 分类id
  * @return 分类关联项目
  */
 @Override
 public List<RepDetailVO> listByDetailId(Integer id) {
      return repDetailMapper.selectByDetailId(id);
 }
}
